package com.zgjkhis.modules.system.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author yzq
 * @Description 医生
 * @Date 2021/6/23 9:38
 * @Param
 * @return
 **/
@Data
@TableName("his_doctor")
public class Doctor implements Serializable {

    @TableId
    private Long id;
    @ApiModelProperty(value = "医生名称")
    private String doctorName;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "来源id")
    private String sourceId;
    @ApiModelProperty(value = "1:本地医生，2：云享医生")
    private Integer type;
    @ApiModelProperty(value = "0:有效，1：失效")
    private Integer status;
    private Long userId;
   @ApiModelProperty(value = "药房id")
   private String pharmacyId;

    public void copy(Doctor source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
